<template>
    <div>
      <li v-for="categoryLevelListItem in model">
        <div class="col-sm-3 category-name-group">
          <div class="input-group">
            <span class="input-group-addon"><i class="fa fa-search"></i>筛选</span>
            <input type="text" class="form-control" placeholder="输入名称">
          </div>
          <ul>
            <li v-for="(categoryListItem,index) in categoryLevelListItem.category"><a :class="{'sub' : categoryListItem.leafCategory == 0}" @click="searchList(categoryListItem)">{{categoryListItem.categoryName}}</a></li>
          </ul>
        </div>
      </li>
    </div>
</template>


<script>
  import instance from '@/api/index.js'
  export default {
    name: "categoryComp",
    props: ['model','site','leafCategory','categoryParmas'],
    data() {
      return {
        currentSelected:"",
        current:{
          children:[]
        },
        currentIndex:0
      }
    },
    methods:{
      searchList:function (obj) {
        this.$emit('searchListByParentId')
      }
    }
  }
</script>

<style scoped>

</style>
